package com.lening.iot.service.impl;

import com.lening.iot.dao.CommunityDAO;
import com.lening.iot.po.Community;
import com.lening.iot.service.CommunityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ToDo:
 * @Author：李忠达
 * @date: 2024/6/20 20:51
 */
@Service
public class CommunityServiceImpl implements CommunityService {

    @Autowired(required = false)
    private CommunityDAO communityMapper;

//    public List<Community> getAllCommunities() {
//        return communityMapper.selectAllCommunities();
//    }


    @Override
    public Community getCommunityById(Long cid) {
        return communityMapper.selectCommunityById(cid);
    }
}
